package com.patent.domain.po;

public class PatentAgentFee {
    private Integer id;
	//专利年限
    private Integer patentYear;
	//专利类型
    private String patentType;
	//代理费用
    private Long agentFee;
	//专利费用
    private Long patentFee;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatentYear() {
        return patentYear;
    }

    public void setPatentYear(Integer patentYear) {
        this.patentYear = patentYear;
    }

    public String getPatentType() {
        return patentType;
    }

    public void setPatentType(String patentType) {
        this.patentType = patentType == null ? null : patentType.trim();
    }

    public Long getAgentFee() {
        return agentFee;
    }

    public void setAgentFee(Long agentFee) {
        this.agentFee = agentFee;
    }

    public Long getPatentFee() {
        return patentFee;
    }

    public void setPatentFee(Long patentFee) {
        this.patentFee = patentFee;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PatentAgentFee other = (PatentAgentFee) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPatentYear() == null ? other.getPatentYear() == null : this.getPatentYear().equals(other.getPatentYear()))
            && (this.getPatentType() == null ? other.getPatentType() == null : this.getPatentType().equals(other.getPatentType()))
            && (this.getAgentFee() == null ? other.getAgentFee() == null : this.getAgentFee().equals(other.getAgentFee()))
            && (this.getPatentFee() == null ? other.getPatentFee() == null : this.getPatentFee().equals(other.getPatentFee()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPatentYear() == null) ? 0 : getPatentYear().hashCode());
        result = prime * result + ((getPatentType() == null) ? 0 : getPatentType().hashCode());
        result = prime * result + ((getAgentFee() == null) ? 0 : getAgentFee().hashCode());
        result = prime * result + ((getPatentFee() == null) ? 0 : getPatentFee().hashCode());
        return result;
    }
}